<?php

use yii\helpers\Html;
use yii\web\Request;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model backend\models\Menu */
if (!Yii::$app->request->isAjax) {
    $this->title = Yii::t('common', 'Create');
    $this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'Menus listing'), 'url' => Url::to(['index','typeid'=>$type])];
    $this->params['breadcrumbs'][] = $this->title;
}
?>
<div class="menu-create">
    <?= $this->render('_form', [
        'type' =>  $type,
        'model' => $model,
    ]) ?>
</div>
